home *** CD-ROM | disk | FTP | other *** search
- property ancestor
- property lastpageDisplay
-
- global lastpage
- global pages
- global Navigator
-
- on Birth me, theChannelObject, theName, thePageInfo
- set the ancestor of me to Birth( script "Master Page Template", theChannelObject, theName, thePageInfo, true, true )
-
- Show me
- UpdateHistory me
-
- set theRollovers to FindButton( me, "Bookmark" )
- SetInk( theRollovers, #Transparent )
- return me
- end
-
-
- on UpdateHistory me
- repeat with thisPageInfo in pages
- set DisplayName to getprop( thisPageInfo, #shortname )
- set thisDisplay to FindDisplay( me, DisplayName )
- --put "looking at page" && #shortname && DisplayName && thisDisplay
- if not ( thisDisplay = 0 ) then
- Hide( thisDisplay, Point(-1000,-1000) )
- setink( thisDisplay, #Transparent )
- if getprop( thisPageInfo, #haveSeen ) = #Seen then
- if ( not ( thisDisplay = me ) ) then
- --put "been to page" && DisplayName
- Show( thisDisplay )
- end if
- end if
- else
- --put "no display for" && DisplayName
- end if
- end repeat
- end
-
- on ChangePage me, theElementID, theValue1, theValue2
- ChangePage( the ancestor of me, theElementID, theValue1, theValue2 )
- case theElementID of
- #Clear:
- ClearHistory
- UpdateHistory me
- end case
- end